home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n03.arc / FASTRUN.BAT < prev    next >
DOS Batch File  |  1990-01-12  |  3KB  |  64 lines

  1. ECHO OFF
  2. CLS
  3. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  4. ECHO ║ FASTrun may optionally be run to speed up INITsys and SCANmax.  It      ║
  5. ECHO ║ creates a directory called ))PCITK.TMP on the current disk. This        ║
  6. ECHO ║ is presumed to be a faster device than the drive containing the CHECK   ║
  7. ECHO ║ diskette. All needed files including COMMAND.COM will be copied there.  ║
  8. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  9. ECHO ║    PCDATA TOOLKIT 1.0 Copyright (C) 1990 Ziff Communications Co.        ║
  10. ECHO ║                    PC Magazine ■ Wolfgang Stiller                       ║
  11. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  12. IF "%1"=="" goto help
  13. IF %1==? goto help
  14. :    If the following files are not present then we've got the wrong disk
  15. CD %1\
  16. IF NOT EXIST %1CHKFILEC.COM GOTO BadDisk
  17. IF NOT EXIST %1MIRDIR.COM  GOTO BadDisk
  18. IF NOT EXIST %1COMMAND.COM GOTO Badsys
  19. GOTO Start
  20. :Help
  21. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  22. ECHO ║ Syntax is:  FASTRUN a:                                                  ║
  23. ECHO ║       where "a:" is the drive containing the CHECK diskette             ║
  24. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  25. ECHO ║ The current drive will have get the necessary programs and batch files  ║
  26. ECHO ║ copied to it.  You should have booted from the CHECK diskette before    ║
  27. ECHO ║ running FASTRUN to make sure that a virus does not corrupt these        ║
  28. ECHO ║ programs.                                                               ║
  29. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  30. GOTO End
  31. :BadDisk
  32. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  33. ECHO ║ FASTrun should ONLY be run with the CHECK diskette containing the needed║
  34. ECHO ║ toolkit files and optionally the ))A.LOG check files. You must specify  ║
  35. ECHO ║ this drive as the parameter to FASTrun.  It does not appear to be in %1.║
  36. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  37. ECHO ║ File MIRDIR.COM, CHKFILECCOM or were not found on Drive %1.             ║
  38. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  39. GOTO Help
  40. :Badsys
  41. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  42. ECHO ║ The CHECK diskette in drive %1 does not have a copy of the system on it.║
  43. ECHO ║ Please check that you have a valid CHECK diskette.                      ║
  44. ECHO ║ BATCH files SETUPH, SETUPH2 and SETUPF create this diskette.            ║
  45. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  46. GOTO End
  47. :Start
  48. CD %1\
  49. MD \))PCITK.TMP
  50. COPY %1*.COM \))PCITK.TMP
  51. COPY %1*.BAT \))PCITK.TMP
  52. PATH=\))PCITK.TMP
  53. SET COMSPEC=\))PCITK.TMP\COMMAND.COM
  54. cd \))PCITK.TMP
  55. :
  56. : Create special marker file so other batch files know about this one
  57. TYPE PCITK.MRK >PCITK.MRK
  58. ECHO ╔════════════════════════════════════════════════════════════════╗
  59. ECHO ║ You are now ready to run SCANmax, SCANsys or INITsys.          ║
  60. ECHO ║ You may use either a CHECK or a CHECK-MT diskette in any drive.║
  61. ECHO ╚════════════════════════════════════════════════════════════════╝
  62. :End
  63. 
  64.